#ifndef LINK
#define LINK
#include <vector>
#include "point.h"

class Link {
	private:
		Point* p1;
		Point* p2;
	public:
		Link();
		Link(Point* p1, Point* p2);
		~Link();
		void setP1(Point* p);
		void setP2(Point* p);
		Point* getP1();
		Point* getP2();
		static float getWeight(Link* );
		static float getWeight(Point*, Point* );
		static Point* getIntersection(Link*, Link*);
        friend std::ostream & operator<<( std::ostream &, Link);
};

#endif
